<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
<body>

This text above will not be displayed.

<ui:composition template="/WEB-INF/layout/template.xhtml">
<ui:define name="phaseListener">
	<f:phaseListener type="cn.hexiao.flog.web.HomePageListener" />
</ui:define>
This text will not be displayed.

  <ui:define name="title">
    ryan.log
  </ui:define>

This text will not be displayed.
	<ui:define name="primaryContent">
		<div id="primaryContent">
		<ui:repeat value="#{homePage.postWrappers}" var="pw">
				<div class="box">
					<span><h:outputText value="#{pw.date}"></h:outputText></span>
					<h2><h:outputLink value="post_#{pw.post.id}.html"><h:outputText value="#{pw.post.title}"></h:outputText></h:outputLink></h2>
					<div class="boxContent">
						<h:outputText value="#{pw.post.summary}" escape="false"></h:outputText>
					</div>
					<div class="boxFooter">
					<h:outputText value="#{pw.time} | 浏览 (#{pw.post.hitCount}) | "></h:outputText>
					<h:outputLink value="post_#{pw.post.id}.html#comments"><h:outputText value="评论"></h:outputText> </h:outputLink>
					 <h:outputText value=" (#{pw.commentsSize}) | 分类:"></h:outputText>
					 <h:outputLink value="home_#{pw.post.category.name}.html"><h:outputText value="#{pw.post.category.name}"></h:outputText> </h:outputLink>
					</div>
				</div>
		</ui:repeat>
		<div id="pre_next"> 
			<h:outputLink value="home_#{param.page - 1}.html" rendered="#{param.page > 0}" styleClass="next">上一页</h:outputLink>
			<h:outputText value=" | " rendered="#{param.page > 0 and homePage.more }"></h:outputText>
			<h:outputLink value="home_#{param.page + 1}.html" rendered="#{homePage.more}" styleClass="pre">下一页</h:outputLink>
		</div>
		</div>
	</ui:define>
  
</ui:composition>

This text below will also not be displayed.

</body>
</html>